import 'package:flutter/material.dart';

class SearchPage extends StatefulWidget {
  const SearchPage({super.key});

  @override
  State<SearchPage> createState() => _SearchPageState();
}

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('搜索页面')),
      body: Center(
          child: ElevatedButton(
        child: const Text('去news'),
        onPressed: () {
          Navigator.pushNamed(context, '/news');
        },
      )),
    );
  }
}
